package com.polukeuro.app.model.dao;

import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;

import com.polukeuro.app.model.manager.PMF;

public class AbstractDAO {

	private static PersistenceManagerFactory pmfInstance = PMF.get();
	
	private PersistenceManager pm = PMF.get().getPersistenceManager();
	
	
	public void persist(Object o) {
		try {
			pm.makePersistent(o);
	    } finally {
	        pm.close();
	    }
	}
	
}
